import request from '../lib/request.js'

export function all(){
	return request({url:'/api/admin/menu/all',method:'get'});
}

export function index(){
	return request({url:'/api/admin/menu/index',method:'get'});
}
export function addMenu(data){
	return  request({url:"/api/admin/menu/add",method:'post',data:data});
}
export function updateMenu(data){
	return  request({url:"/api/admin/menu/update",method:'post',data:data});
}
export function delMenu(data){
	return  request({url:"/api/admin/menu/del",method:'post',data:data});
}